FROM ubuntu:18.04
MAINTAINER zx.J<1078407217@qq.com>

RUN apt-get update && apt-get install -y locales && rm -rf /var/lib/apt/lists/* \
    && localedef -i zh_CN -c -f UTF-8 -A /usr/share/locale/locale.alias zh_CN.UTF-8

ENV LANG zh_CN.UTF-8

RUN apt-get update -o Acquire-by-hash=yes && apt-get install -y openssh-server openjdk-8-jdk

ADD apache-flume-1.9.0-bin.tar.gz /usr/local/

ENV JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
ENV FLUME_HOME=/usr/local/apache-flume-1.9.0-bin
ENV PATH=$PATH:$FLUME_HOME/bin


RUN mkdir -p /data/flume